Self-synchronizing code